
// 纯函数
const reducer = (state = 0, action) => {
    switch (action.type) {
        case "A/ADD":
            return state + 1
        case "A/MINUS":
            return state - 1
        default:
            return state
    }
}


export default reducer